import request from '@/utils/request'

// 创建视频审核记录
export function createVideoRecord(data) {
  return request({
    url: '/audit/video-record/create',
    method: 'post',
    data: data
  })
}

// 更新视频审核记录
export function updateVideoRecord(data) {
  return request({
    url: '/audit/video-record/update',
    method: 'put',
    data: data
  })
}

// 删除视频审核记录
export function deleteVideoRecord(id) {
  return request({
    url: '/audit/video-record/delete?id=' + id,
    method: 'delete'
  })
}

// 获得视频审核记录
export function getVideoRecord(id) {
  return request({
    url: '/audit/video-record/get?id=' + id,
    method: 'get'
  })
}

// 获得视频审核记录分页
export function getVideoRecordPage(params) {
  return request({
    url: '/audit/video-record/page',
    method: 'get',
    params
  })
}
// 导出视频审核记录 Excel
export function exportVideoRecordExcel(params) {
  return request({
    url: '/audit/video-record/export-excel',
    method: 'get',
    params,
    responseType: 'blob'
  })
}